package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SGuildWelcome extends Object implements IMessageBase
    {
        public var fromPlayer:SPublicMiniPlayer;
        public var fromPlayerPosition:String;
        public var option:EOperOption;
        public var words:String;
        public var extend:int;
        public const _type:int = 12090;
        public static var _regist:SGuildWelcome = new SGuildWelcome(true);

        public function SGuildWelcome(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGuildWelcome();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.fromPlayer.__write(param1);
            param1.writeString(this.fromPlayerPosition);
            this.option.__write(param1);
            param1.writeString(this.words);
            param1.writeInt(this.extend);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.fromPlayer = new SPublicMiniPlayer();
            this.fromPlayer.__read(param1);
            this.fromPlayerPosition = param1.readString();
            this.option = EOperOption.__read(param1);
            this.words = param1.readString();
            this.extend = param1.readInt();
            
        }

    }
}
